package org.itboys.seller.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/8/6.
 */
@Entity(value = "RankingUserDB", noClassnameStored = true)
public class RankingUserDB extends BaseLongIdEntity {

    @Indexed
    private String sellerUserName;

    private List<Long> userIds;

    private Map<Long, Integer> actualScores;

    private Map<Long, Integer> totalScores;

    private List<Long> sUserIds;

    private Map<Long, Integer> sActualScores;

    private Map<Long, Integer> sTotalScores;

    private List<Long> ssUserIds;

    private Map<Long, Integer> ssActualScores;

    private Map<Long, Integer> ssTotalScores;

    private int totalAmount; //这一期销售总额

    private int type; // 0:上一期排名, 1: 当期排名

    public String getSellerUserName() {
        return sellerUserName;
    }

    public void setSellerUserName(String sellerUserName) {
        this.sellerUserName = sellerUserName;
    }

    public List<Long> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }

    public Map<Long, Integer> getActualScores() {
        return actualScores;
    }

    public void setActualScores(Map<Long, Integer> actualScores) {
        this.actualScores = actualScores;
    }

    public Map<Long, Integer> getTotalScores() {
        return totalScores;
    }

    public void setTotalScores(Map<Long, Integer> totalScores) {
        this.totalScores = totalScores;
    }

    public int getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(int totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<Long> getsUserIds() {
        return sUserIds;
    }

    public void setsUserIds(List<Long> sUserIds) {
        this.sUserIds = sUserIds;
    }

    public Map<Long, Integer> getsActualScores() {
        return sActualScores;
    }

    public void setsActualScores(Map<Long, Integer> sActualScores) {
        this.sActualScores = sActualScores;
    }

    public Map<Long, Integer> getsTotalScores() {
        return sTotalScores;
    }

    public void setsTotalScores(Map<Long, Integer> sTotalScores) {
        this.sTotalScores = sTotalScores;
    }

    public List<Long> getSsUserIds() {
        return ssUserIds;
    }

    public void setSsUserIds(List<Long> ssUserIds) {
        this.ssUserIds = ssUserIds;
    }

    public Map<Long, Integer> getSsActualScores() {
        return ssActualScores;
    }

    public void setSsActualScores(Map<Long, Integer> ssActualScores) {
        this.ssActualScores = ssActualScores;
    }

    public Map<Long, Integer> getSsTotalScores() {
        return ssTotalScores;
    }

    public void setSsTotalScores(Map<Long, Integer> ssTotalScores) {
        this.ssTotalScores = ssTotalScores;
    }
}
